//Add triggers and other commands to be executed each game frame here.
//Use Edit->Insert Trigger Function to select from the list of available functions
//Use Edit->Insert Trigger Block to add a blank trigger block.
//See ./scenario/sample_script.bhs for additional documentation
trigger opening_dialog ( )
{
add_objective_text( "Date: April 26, 1945", "date", "null.wav" );
popup_dialog( "April 1945 - Comrade general, it has been a long road to victory, and now it seems in sight. There is only one option for you general: victory by conquest! Capture the Reichstag, the seat of fascist power, and the Soviet Union will be victorious.");
popup_dialog( "NEW OBJECTIVE: Capture the Reichstag" );
add_objective( "Capture the Reichstag", "cap", "null.wav" );
popup_dialog( "While two Russian armies are racing towards victory, you can only control one. But you must be first to the Reichstag." );
while ( !playerID )
{
if ( popup_choice( "OPTION A: Play the role of Zhukov in the North", "Yes", "No..." ) == 1 )
{
playerID = 1;
}
else if ( popup_choice( "OPTION B: Play the role of Koniev in the South", "Yes", "Go Back..." ) == 1 )
{
playerID = 2;
move_camera( 374, 380 );
set_leader_difficulty( 1, 100 );
enable_production_ai( 1 );
enable_combat_ai( 1 );
enable_all_unit_ai( 1 );
enable_trigger( "help_p1_build" );
}
}
change_objective_text( "cap", "Capture the Reichstag first" );
switch_player_control( playerID );
}
trigger tipster ( time_sec() == 45 )
{
popup_dialog( "TIP: The more parts of the city you hold, the more income you receive. Troops are produced instantly, so take advantage of this." );
}
trigger calendar ( timer_expired( "cdar" ) )
{
// check for month change
if ( day == 30 && month == 4 )
{
day = 1;
month = 5;
popup_dialog( "Stalin has given you until the end of May 2 to capture the Reichstag, comrade general. You had best not disapoint him." );
change_objective_text( "cap", "Capture the Reichstag by May 2" );
}
else if ( day == 2 && month == 5 )
{
// It's the end of the scenario
popup_dialog( "General, though the Russian army seemed unstoppable, you have somehow clenched defeat from the jaws of victory. You have been dismissed while more capable generals have been tasked with taking Berlin." );
defeat( 1 );
defeat( 2 );
}
else
{
// no month change, normal increment
day++;
}
if ( month == 4 )
{
change_objective_text( "date", "Date: April " +day+", 1945" );
}
else {
change_objective_text( "date", "Date: May " +day+", 1945" );
popup_dialog( "Soldiers of the glorious Red Army have today captured Hitler's bunker. They have discovered that the coward has comitted suicide rather than face the justice of the Soviet people. Troops celebrate the occasion and the news of Hitler's death boosts morale. " );
popup_dialog( "Elite shock troops under Zhukov surprise Hitler in his bunker. The dictator is caught amid preparations for suicide and is taken into custody. By week's end, his bruised and battered body will be on display for a public trial in Red Square. The Soviet people will make him sorry his suicide was not successful. " );
if ( playerID == 1 )
{
popup_dialog( "Comrade general, Stalin has personally telephoned your headquarters to thank you on behalf of the Soviet people for capturing the criminal Hitler. He has assured you that you will have the personal pleasure of \"interrogating\" the criminal once the battle for Berlin is completed. " );
popup_dialog( "The bombed, bullet-wrecked, and smoking remains of the Reichstag are a testiment to the Third Reich, which now lay in smoldering ruin under the feet of the victorious Red Army." );
popup_dialog( "Comrade General, your victory here has been historic and your struggle has been epic. You have seen the pain of defeat and the glory of victory and have lead the armies of Russia through both without hesitation." );
popup_dialog( "News of the fall of Berlin spreads quickly. First to Moscow and comrade Stalin, who sends his congratulations, and onto the allies who stand and marvel at your accomplishments. The war is over now comrade general, and our triumph is owed so very much to your actions. Congratulations!" );
popup_dialog( "Victory in Europe. Victory on the Red Front." );
set_victory_message( "Victory!" );
victory( playerID );
}
else
{
popup_dialog( "It seems that Marshal Koniev has beaten you to the Reichstag, general. The defeat is an utterly humiliating blow to you and the soldiers under you. While the victory over the Third Reich is complete, it is obvious that there is something hollow about this victory for you. " );
popup_dialog( "Troops under Marshal Koniev have today captured the seat of fascist power, the Reichstag. Though the defense was fierce, the tide of the glorious Soviet Union would not be denied and the Russian soldier proved his mettle." );
popup_dialog( "Comrade General, your victory here has been historic and your struggle has been epic. You have seen the pain of defeat and the glory of victory and have lead the armies of Russia through both without hesitation." );
popup_dialog( "News of the fall of Berlin spreads quickly, as does the fact that your leadership is perhaps the greatest in the world. Already comrade Stalin has called your headquarters to praise your efforts. The war is over now comrade general, and our triumph is owed so very much to your actions. Congratulations!" );
popup_dialog( "Victory in Europe. Victory on the Red Front." );
set_victory_message( "Victory!" );
victory( playerID );
}
else
{
popup_dialog( "It seems that Marshal Zhukov has beaten you to the Reichstag, general. The defeat is an utterly humiliating blow to you and the soldiers under you. While the victory over the Third Reich is complete, it is obvious that there is something hollow about this victory for you. " );